package com.googlecode.rjm.model.journal;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import com.googlecode.rjm.model.Category;

@Entity
@DiscriminatorValue(value = "attr#category_id")
public class CategoryJournalDetail extends JournalDetail<Category> {

	private static final long serialVersionUID = 1L;

	@Override
	public Category getTypedValue() {
		return loadObjectFromId(this.getValue(), Category.class);
	}

	@Override
	public Category getOldTypedValue() {
		return loadObjectFromId(this.getOldValue(), Category.class);
	}

}
